import request from '@/http/request.js'

export const getScheduleTemplateList = (params) =>
  request({ url: '/ht/schedule_template/list', params })

export const getScheduleTemplate = (params) =>
  request({ url: '/ht/schedule_template/page', params })

export const scheduleTemplateDetail = (params) =>
  request({ url: `/ht/schedule_template/get/${params.id}` })

export const saveScheduleTemplate = (params) =>
  request({ method: 'post', url: '/ht/schedule_template/save', data: params })

export const updateScheduleTemplate = (params) =>
  request({ method: 'post', url: '/ht/schedule_template/update', data: params })

export const deleteScheduleTemplate = (params) =>
  request({ url: `/ht/schedule_template/delete/${params}`, data: params })
